/*
 * Square.cc
 *
 *  Created on: Feb 26, 2011
 *      Author: topcoder
 */

#include "Square.h"

Square::Square(const float sideLen): rectangle_m(sideLen,sideLen)
{
}

double Square::getArea() const
{
    return rectangle_m.getArea();
}

double Square::getPerimeter() const
{
    return rectangle_m.getPerimeter();
}

void Square::setSideLength(const float sideLen)
{
    rectangle_m.setLength(sideLen);
    rectangle_m.setWidth(sideLen);
}

